package name.fowler.refactoring.simplestore;

/**
 * @author aifgi
 */
public class RentalInfo {
    private final Movie movie;
    private final double amount;

    public RentalInfo(final Movie movie, final double amount) {
        this.movie = movie;
        this.amount = amount;
    }

    public Movie getMovie() {
        return movie;
    }

    public double getAmount() {
        return amount;
    }

    @Override
    public String toString() {
        return "\t" + movie.getTitle() + '\t' + amount;
    }
}
